package com.lcf.system.service;

import com.lcf.framework.utils.oss.OssUtils;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

/**
 * 文件上传
 *
 * @author lcf
 */
@Service
public class FileUploadService {
    /**
     * 图片上传
     */
    public String uploadImg(String bucket, MultipartFile file, boolean isCompress) {
        return OssUtils.uploadImg(bucket, file, isCompress);
    }

    /**
     * 文件上传
     */
    public String uploadFile(String bucket, MultipartFile file) {
        return OssUtils.uploadFile(bucket, file);
    }
}
